package staticproxy;

/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: TeacherDaoProxy
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2022/1/3 10:57
 * @version: 1.0
 */
public class TeacherDaoProxy implements ITeacherDao{

    private ITeacherDao target;

    public TeacherDaoProxy(ITeacherDao target) {
        this.target = target;
    }

    public void teach() {
        System.out.println("开始代理完成某些操作。。。。。");
        target.teach();
        System.out.println("提交。。。。。");
    }


}
